CVE-2026-71550 CRITICAL 9.9 난이도Difficulty 중급Intermediate
SuiteCRM 워크플로 컨트롤러의 경로 탐색(Path traversal)으로 인한 PHP 파일 인클루전 및 코드 실행Path traversal in the SuiteCRM workflow controller leads to PHP file inclusion and code execution
CVE-2026-71550는 SuiteCRM의 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')(CWE-98) 취약점으로, CVSS 9.9(CRITICAL)입니다. 영향 버전: 7.x < 7.15.2, 8.x < 8.10.2. 수정 버전: 7.15.2, 8.10.2.CVE-2026-71550 is an Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') (CWE-98) vulnerability in SuiteCRM, rated CVSS 9.9 (CRITICAL). Affected: 7.x < 7.15.2, 8.x < 8.10.2. Fixed in: 7.15.2, 8.10.2.
| 제품Product | SuiteCRM |
|---|---|
| 영향 버전Affected | 7.x < 7.15.2, 8.x < 8.10.2 |
| 수정 버전Fixed in | 7.15.2, 8.10.2 |
| 심각도Severity | CVSS 9.9 CRITICAL |
| 취약점 유형Weakness | CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') |
| 공격 조건Attack conditions | 원격 (네트워크) · 일반 권한 계정 필요 · 사용자 상호작용 불필요Remote (network) · Low-privilege account · No user interaction |
1. TL;DR
SuiteCRM의 워크플로 모듈(AOW_WorkFlow)은 aow_action이라는 요청 파라미터를 받아, 결과 경로를 예상된 디렉터리 안으로 제한하지 않은 채 PHP의 require_once()에 전달합니다. WorkFlow 역할을 가진 로그인 사용자는 경로 탐색 시퀀스를 사용해 서버가 자신이 고른 PHP 파일을 인클루드하고 실행하게 만들 수 있습니다. GitHub 권고문에 따르면 원격 코드 실행이 가능한 것으로 확인되었습니다. CVSS 9.9로 평가되며 7.15.2와 8.10.2에서 수정되었습니다.
2. Flaw 분류
| 항목 | 값 |
|---|---|
| 주요 CWE | CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program (NVD). 권고문은 이를 Local File Inclusion으로 설명합니다. |
| 공격 벡터 | 네트워크. aow_action GET 파라미터를 사용하는 CRM 웹 애플리케이션 대상 HTTP 요청(권고문 기준). |
| 영향 | 서버에서의 PHP 코드 실행. 권고문에 따르면 CRM 데이터와 config.php의 비밀 값에 대한 접근, 웹 서버 사용자 권한의 파일 시스템 읽기/쓰기, 지속적 접근이 가능해집니다. |
| 전제 조건 | WorkFlow 역할(AOW_WorkFlow 접근 활성화)이 있는 인증된 세션. 관리자 권한은 필요하지 않습니다. |
| 영향받는 버전 | 권고문 기준: 7.15.1까지의 7.x 및 8.10.1까지의 8.x |
| 수정된 버전 | 7.15.2 및 8.10.2 |
| CVSS 3.1 | 9.9 Critical: AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Scope:Changed 평가는 영향이 CRM 자체의 권한 모델을 넘어선다는 점을 반영합니다. 낮은 권한의 CRM 역할이 웹 서버 프로세스의 권한을 얻게 됩니다.
3. 근본 원인
워크플로 컨트롤러는 사용자가 제공한 aow_action 값으로 파일 경로를 만들고 require_once()로 로드합니다. 권고문은 영향받는 릴리스에서 이 코드가 modules/AOW_WorkFlow/controller.php의 542–546행에 있다고 밝힙니다.
개발자의 의도는 아마 다음과 같았을 것입니다. aow_action은 소수의 액션 핸들러 이름을 가리키고, 컨트롤러는 그에 대응하는 파일을 로드합니다. 그러나 코드는 이 의도를 강제하지 않습니다. 값을 허용 목록(allow-list)과 대조하지 않으며, 해석된 경로가 의도한 디렉터리 안에 머무는지도 확인하지 않습니다.
require_once()는 파일을 읽기만 하는 것이 아닙니다. 파일을 파싱하고, 그 안의 PHP를 애플리케이션 권한으로 실행합니다. 공격자가 경로를 통제하면 곧 코드 실행입니다. 여기서는 두 가지가 결합됩니다.
- 경로에 들어간 신뢰할 수 없는 입력. 디렉터리 탐색 시퀀스로 값이 의도한 폴더 밖을 가리킬 수 있습니다.
- 위험한 싱크(sink). include 구문은 로드한 것은 무엇이든 실행합니다.
역할 검사는 이 간극을 막지 못합니다. 역할 검사는 누가 컨트롤러에 도달할 수 있는지만 정할 뿐, 컨트롤러가 무엇을 로드할지는 제한하지 않습니다.
4. 익스플로잇 흐름(개념)
아래 각 단계는 개념을 설명하는 것이며, 공격 입력은 제시하지 않습니다.
- 접근 권한 확보. 공격자는 WorkFlow 역할이 있는 계정의 유효한 세션을 가지고 있습니다. 낮은 권한의 계정일 수 있습니다.
- 워크플로 컨트롤러 도달. 공격자는
AOW_WorkFlow컨트롤러로 라우팅되는 요청을 보내고aow_action파라미터를 설정합니다. - 경로를 다른 곳으로 지정. 파라미터 값이 디렉터리 탐색 시퀀스를 사용하므로, 해석된 경로가 의도한 핸들러 디렉터리를 벗어나 서버의 다른 PHP 파일을 가리킵니다.
- 서버가 파일을 인클루드.
require_once()가 대상을 로드하고 그 PHP를 실행합니다. 공격자에게는 접근 가능한 위치에 공격자가 내용을 좌우할 수 있는 파일이 필요합니다. 권고문은 이를 어떻게 마련하는지 설명하지 않으며, 이 가이드도 설명하지 않습니다. - 웹 서버 사용자 권한으로 코드 실행. 이후 공격자는 애플리케이션 데이터베이스와 설정을 포함해 해당 사용자가 접근할 수 있는 모든 것에 접근할 수 있습니다.
- 인증된 세션 — WorkFlow 역할
- aow_action 파라미터 — 탐색 시퀀스 포함 가능
- require_once()가 의도한 디렉터리 밖으로 경로 해석
- 공격자가 고른 PHP 실행
- 웹 서버 사용자 권한으로 코드 실행
5. 트리거 조건
- 제품이 7.15.1까지의 SuiteCRM 7.x 또는 8.10.1까지의 8.x입니다(권고문 기준). 8.x에서는 해당 코드가 레거시 계층에 있습니다.
- 공격자가 AOW_WorkFlow 모듈 접근을 허용하는 역할의 유효한 로그인 정보를 가지고 있습니다.
- 웹 서버 프로세스가 대상 파일을 읽을 수 있어야 합니다. 공격자가 실질적으로 어떤 파일을 인클루드할 수 있는지는 배포 환경에 따라 다르며, 공개 자료에는 설명되어 있지 않습니다.
- 사용자 상호작용이 필요 없고(
UI:N) 공격 복잡도는 낮음으로 평가됩니다.
6. 패치 분석
작성 시점에 실제 diff를 가져오지 못했으므로(REVIEW_NOTES 참조), 이 섹션은 패치 인용이 아니라 개념적 설명입니다. 벤더의 7.15.2 및 8.10.2 릴리스 페이지는 해당 릴리스가 제공된다는 점만 알립니다. 릴리스 노트로 연결될 뿐 이 수정을 설명하지는 않습니다.
이런 유형의 버그에 대한 수정은 보통 다음 중 하나 이상을 수행합니다.
- 값을 허용 목록으로 제한. 알려진 고정된 액션 이름만 허용하고, 그 외에는 경로를 만들기 전에 거부합니다.
- 해석된 경로를 제한. 경로를 정규(canonical) 형태로 해석한 뒤, 의도한 디렉터리 안에 있는지 코드가 검증합니다.
- 탐색 문자 거부. 단순한 액션 이름이어야 할 값에서 구분자와
..시퀀스를 거부합니다.
메인테이너가 어떤 방식을 택했든, 흐름의 3단계는 차단됩니다. 값이 더 이상 require_once()를 의도한 핸들러 디렉터리 밖으로 유도할 수 없습니다. 커밋을 검토한 뒤에는 편집자가 이 섹션을 실제 diff로 교체해야 합니다.
7. 탐지·완화
즉시 조치
- SuiteCRM을 7.15.2(7.x 계열) 또는 8.10.2(8.x 계열)로 업그레이드합니다. 이들은 권고문에 명시된 수정 버전입니다.
- 업그레이드하기 전까지는 WorkFlow 역할을 가진 계정을 검토하고, 필요하지 않은 사용자에게서 해당 역할을 제거합니다. 취약한 사용자 집단이 바로 이 역할 보유자이므로, 이는 수정이 아니라 위험 감소 조치입니다.
- 과거 악용 가능성을 배제할 수 없다면 해당 인스턴스가 침해되었을 수 있다고 간주합니다. 데이터베이스 자격 증명과
config.php에 저장된 기타 비밀 값을 교체하고, 웹에서 접근 가능한 디렉터리에 예상치 못한 파일이 있는지 확인합니다(권고문은 웹셸을 통한 지속성을 언급합니다).
탐지
- 웹 서버 및 프록시 로그.
aow_action에 탐색 시퀀스(일반 또는 URL 인코딩된..등)나 정상적인 액션 이름이 아닌 값이 포함된 워크플로 컨트롤러 요청을 찾습니다. 정상적인 액션 이름은 짧은 식별자여야 합니다. - 계정 검토. 의심스러운 요청을 보낸 계정과 연관 짓습니다. 해당 계정이 WorkFlow 역할을 가지고 있는지, 활동이 정상적인 사용 패턴과 일치하는지 확인합니다.
- 파일 무결성. 정상적인 업그레이드 절차 밖에서 생성되거나 수정된 PHP 파일, 특히 업로드, 캐시 등 쓰기 가능한 디렉터리의 파일을 찾습니다.
- 프로세스 동작. 웹 서버 사용자가 셸을 생성하거나 비정상적인 외부 연결을 만드는지 확인합니다.
격리된 실습(로컬 Docker 랩)
이 flaw는 인터넷에 연결되지 않은 로컬 Docker 랩에서만 재현하십시오. 취약한 릴리스(7.15.1 또는 8.10.1)로 만든 일회용 컨테이너와 직접 만든 무해한 마커 파일을 사용합니다. 소유하지 않았거나 서면 테스트 허가가 없는 시스템에는 절대 시도하지 마십시오.
컨트롤러의 취약한 버전과 수정된 버전을 비교하는 것이 유용한 학습 과제입니다. 이어서 aow_action의 탐색 유사 값을 표시하는 간단한 방어용 로그 규칙을 작성합니다. 이 규칙이 랩 트래픽에서는 동작하고 정상적인 워크플로 사용에서는 동작하지 않는지 확인합니다.
8. References
1. TL;DR
SuiteCRM’s workflow module (AOW_WorkFlow) takes a request parameter named aow_action and passes it to PHP’s require_once() without confining the result to an expected directory. A logged-in user holding the WorkFlow role can use path-traversal sequences to make the server include and run a PHP file of their choosing. The GitHub advisory says this was confirmed to give remote code execution. It is rated CVSS 9.9 and fixed in 7.15.2 and 8.10.2.
2. Flaw classification
| Item | Value |
|---|---|
| Primary CWE | CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program (NVD). The advisory describes it as a Local File Inclusion. |
| Attack vector | Network. HTTP request to the CRM web application, using the aow_action GET parameter (per the advisory). |
| Impact | Execution of PHP code on the server. Per the advisory this allows access to CRM data and secrets in config.php, filesystem read/write as the web server user, and persistent access. |
| Prerequisites | An authenticated session with the WorkFlow role (AOW_WorkFlow access enabled). Administrator rights are not required. |
| Affected versions | Per the advisory: 7.x up to 7.15.1 and 8.x up to 8.10.1. |
| Fixed versions | 7.15.2 and 8.10.2 |
| CVSS 3.1 | 9.9 Critical: AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
The Scope:Changed rating reflects that the impact goes beyond the CRM’s own permission model. A low-privilege CRM role ends up with the privileges of the web server process.
3. Root cause
The workflow controller builds a file path from the user-supplied aow_action value and loads it with require_once(). The advisory places this at modules/AOW_WorkFlow/controller.php, lines 542–546 in the affected release.
The developer’s intent is probably this: aow_action names a small set of action handlers, and the controller loads the matching file. The code does not enforce that intent. It does not check the value against an allow-list, and it does not check that the resolved path stays inside the intended directory.
require_once() does not just read a file. It parses the file and runs any PHP in it with the application’s privileges. If an attacker controls the path, that is code execution. Two things combine here:
- Untrusted input in a path. Directory-traversal sequences let the value point outside the intended folder.
- A dangerous sink. The include statement executes whatever it loads.
The role check does not close this gap. It only decides who may reach the controller. It does not limit what the controller will load.
4. Exploit flow (conceptual)
Each step below describes a concept. No attack input is shown.
- Obtain access. The attacker holds a valid session for an account with the WorkFlow role. This can be a low-privilege account.
- Reach the workflow controller. The attacker sends a request that is routed to the
AOW_WorkFlowcontroller and sets theaow_actionparameter. - Point the path elsewhere. The parameter value uses directory-traversal sequences so that the resolved path leaves the intended handler directory and refers to another PHP file on the server.
- Server includes the file.
require_once()loads the target and executes its PHP. The attacker needs a file with attacker-influenced content in a reachable location. The advisory does not describe how that is arranged, so this guide does not either. - Code runs as the web server user. The attacker can then reach everything that user can reach, including the application database and configuration.
- authenticated session — WorkFlow role
- aow_action parameter — traversal-capable
- require_once() resolves outside intended directory
- attacker-chosen PHP executes
- code execution as web server user
5. Trigger conditions
- The product is SuiteCRM 7.x up to 7.15.1 or 8.x up to 8.10.1 (per the advisory). On 8.x, the code in question is in the legacy layer.
- The attacker has a valid login whose role grants access to the AOW_WorkFlow module.
- The web server process can read the target file. Which files an attacker can usefully include depends on the deployment and is not described in public sources.
- No user interaction is required (
UI:N) and the attack complexity is rated low.
6. Patch analysis
The real diff was not retrieved during drafting (see REVIEW_NOTES), so this section is conceptual and not a quote of the patch. The vendor’s 7.15.2 and 8.10.2 release pages only say that the releases are available. They link to release notes and do not describe this fix.
A fix for this class of bug does one or more of the following:
- Allow-list the value. Only a fixed set of known action names is accepted, and anything else is rejected before a path is built.
- Constrain the resolved path. The path is resolved to its canonical form, and the code verifies it lies inside the intended directory.
- Reject traversal characters. Separators and
..sequences are refused in a value that should be a plain action name.
Whichever approach the maintainers used, it breaks step 3 of the flow: the value can no longer steer require_once() outside the intended handler directory. Editors should replace this section with the actual diff once the commits are reviewed.
7. Detection & mitigation
Immediate actions
- Upgrade SuiteCRM to 7.15.2 (7.x line) or 8.10.2 (8.x line). These are the fixed versions named in the advisory.
- Until you can upgrade, review which accounts hold the WorkFlow role and remove it from anyone who does not need it. This is a risk reduction and not a fix, because the vulnerable user population is exactly the set of role holders.
- If you cannot rule out past abuse, treat the instance as possibly compromised. Rotate the database credentials and any other secrets stored in
config.php, and check for unexpected files in web-accessible directories (the advisory mentions webshell persistence).
Detection
- Web server and proxy logs. Look for requests to the workflow controller where
aow_actioncontains traversal sequences (such as.., in plain or URL-encoded form) or anything other than a normal action name. A legitimate action name should be a short identifier. - Account review. Correlate suspicious requests with the accounts that sent them. Check whether those accounts have the WorkFlow role and whether their activity matches normal use.
- File integrity. Look for new or modified PHP files outside the normal upgrade process, especially in upload, cache or other writable directories.
- Process behaviour. Look for the web server user spawning shells or making unusual outbound connections.
Isolated practice (local Docker lab)
Reproduce this flaw only in a local Docker lab with no internet access. Use a throwaway container built from a vulnerable release (7.15.1 or 8.10.1) and a harmless marker file you create yourself. Never test against systems you do not own or have written permission to test.
A useful learning exercise is to compare the vulnerable and fixed versions of the controller. Then write a small defensive log rule that flags traversal-like values in aow_action. Confirm that the rule fires on lab traffic and does not fire on normal workflow use.