Home / Apache Software Foundation / Apache Camel / CVE-2026-79986
CVE-2026-79986: is it exploited, and which versions of Apache Software Foundation Apache Camel are affected and fixed?
CVE-2026-79986 is a path traversal (reading or writing files outside the intended folder) vulnerability in Apache Software Foundation Apache Camel. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: Apache Camel from 4.0.0 before 4.18.5 and Apache Camel from 4.19.0 before 4.22.1 (CVE record by apache). Fixed in 4.18.5, 4.22.1 and 4.23.0 (CVE record by apache). Severity: High (7.4, CVSS 3.1, from apache).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:05 UTC.
What is CVE-2026-79986?
Apache Camel: camel-azure-files resolved the remote path of a polled file from the name reported in the server directory listing without constraining it to the directory being polled, so a listing entry containing traversal segments could be moved outside
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache Camel Azure Files component. This issue affects Apache Camel: from 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1. The Camel remote-file consumers poll a directory on a remote server and build the absolute remote path of each file by concatenating the configured directory with the file name reported in the server's directory listing. That concatenation (FtpUtils.absoluteFilePath and GenericFileConsumer) applied no lexical normalization and no check that the result stayed inside the directory being polled, and the resulting path became the operand for every subsequent remote operation on the file: retrieval (FtpOperations.retrieveFile / SftpOperations, reached from GenericFileConsumer where the retrieve name is taken verbatim from GenericFile.getAbsoluteFilePath), deletion when delete=true (GenericFileDeleteProcessStrategy), and renaming when move, preMove, moveFailed or readLock=rename is configured (GenericFileProcessStrategySupport and GenericFileRenameExclusiveReadLockStrategy). Neither isValidFile nor isMatched performed any containment check. A listing entry that is not a single path segment therefore resolved to a path outside the configured polling directory, causing Camel to read, delete or rename files outside it using the endpoint's own credentials. A listing name is not route-controlled data. It is supplied by the remote server, and the FTP control channel carries no integrity protection at all, so an on-path attacker can rewrite a LIST response without holding any credentials; a compromised, malicious or multi-tenant server, or a server backed by a virtual filesystem, can emit such a name directly. Retrieval is reachable in a default consumer configuration, since the remote consumers download every listed file; deletion and renaming additionally require one of the disposition options above, all of which are common. Escape from the directory Camel was configured to poll is unconditional, while escape from the server's own account boundary additionally depends on whether that server confines the account. The jailStartingDirectory option, which is documented as restricting Camel to the starting directory and is enabled by default, governed producer writes and, since the localWorkDirectory containment work, consumer downloads to the local work directory - but it did not constrain this remote operand, so its name and description claimed a boundary that was not enforced here. The same entry point had already been recognised on the local side: the localWorkDirectory download path was constrained so that a remote file name containing parent-directory segments could not resolve outside the local work directory. The remote operand was the remaining half of that surface. This artifact provides the azure-files scheme. Its consumer derives from the same RemoteFileConsumer base class and composed the remote path through a plain concatenation helper, so it inherited the same unconstrained resolution. Reaching it requires a listing name that is not a single path segment, which the Azure Files REST service does not normally return; the exposure was corrected on the same basis as the other remote-file consumers rather than from a demonstrated proof of concept against this scheme. Upgrade to Apache Camel 4.23.0, which fixes the issue. Users on the 4.22.x releases stream should upgrade to 4.22.1. Users on the 4.18.x LTS releases stream should upgrade to 4.18.5. The 4.14.x stream reached end of life and does not receive this fix; users on it should move to a supported releases stream.
From the CVE record by apache, last updated November 3, 2026, 22:13 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Camel org.apache.camel:camel-azure-files | from 4.0.0 before 4.18.5 from 4.19.0 before 4.22.1 | 4.18.5, 4.22.1, 4.23.0 |
As the CVE record by apache states it, last updated November 3, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | camel | from 4.0.0 before 4.18.5 | application |
| apache | camel | from 4.19.0 before 4.22.1 | application |
NVD analysis (status Modified), last modified November 3, 2026, 23:17 UTC.
How severe is CVE-2026-79986?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N | apache |
| Critical 9.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-79986 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, October 20, 2026)
- EPSS
- 1.02% probability of exploitation activity in the next 30 days, percentile 64.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
How do I fix it? (from the CVE record)
Upgrade to Apache Camel 4.23.0, which fixes the issue. Users on the 4.22.x releases stream should upgrade to 4.22.1. Users on the 4.18.x LTS releases stream should upgrade to 4.18.5. The 4.14.x stream reached end of life and does not receive this fix; users on it should move to a supported releases stream. The fix adds a separator-aware GenericFileHelper.isWithinDirectory overload, since remote paths always use a forward slash regardless of the platform Camel runs on, and a GenericFileConsumer.isWithinStartingDirectory strategy consulted from isValidFile when jailStartingDirectory is enabled. The base implementation is a no-op, because names obtained from a local directory listing are always single path segments; RemoteFileConsumer and SmbConsumer override it to compact the resolved path and verify on path-segment boundaries that it still resolves inside the directory being polled. A file resolving outside is skipped and a warning is logged, rather than raising, so that the remaining legitimate entries in the same listing still process. Containment was chosen over stripping the path component because remote directories are legitimately nested and a parent-directory segment that still resolves back inside the polled directory remains valid. The check runs after the existing match filters so that the "." and ".." entries returned by SFTP servers, which the hidden-file rule already excludes, do not log on every poll. The change adds no new module dependency.
Is there a workaround? (from the CVE record)
For deployments that cannot upgrade immediately, scope the SAS token or account key used by the endpoint to the directory being polled, so that the service enforces the boundary independently of Camel. The HTTPS transport already protects the listing in transit, so the remaining exposure is a share whose contents are written by a party that is not trusted. Constrain the consumer with the filter, antInclude or include options so that only simple single-segment file names are accepted, and avoid enabling delete=true, move, preMove, moveFailed or readLock=rename on endpoints pointing at a server whose listing content is not fully trusted, since those options are what turn the issue from a read into a destructive operation. Where the server supports it, confine the account used by the endpoint to the polled directory, so that the server itself enforces the boundary independently of Camel. As defence in depth, treat file names reported by any remote server outside the route's trust boundary as untrusted input.
Where are the vendor advisories and references?
- Apache Camel Security Advisory - CVE-2026-79986 vendor-advisory
- CAMEL-24487 issue-tracking
- Fix on main, for 4.23.0 (commit 177fb1fdff90632ebfd27772a625b720c1cab3e7) patch
- Backport to camel-4.22.x, for 4.22.1 (commit b31b1754d26352ea823354c8660074aaba257c45) patch
- Backport to camel-4.18.x, for 4.18.5 (commit c1165e4e663c3c3edc7bd30451ecc213fcf68cfd) patch
- Upgrade-guide documentation sync to main (commit a7d7d3ad2e7f940ece35803a0929aa8215d91dfc) related
- https://github.com/oscerd/CVE-2026-79986 exploit
Who found and reported it?
- Dilrevx, NSSL, SJTU (reporter)
- Andrea Cosentino (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- August 25, 2026
- Published
- October 19, 2026, 10:25 UTC
- CVE record updated
- November 3, 2026, 22:13 UTC by apache
- NVD
- Modified, last modified November 3, 2026, 23:17 UTC
- Last checked
- CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:05 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Camel?
- Dec 3, 2026CVE-2026-135919 Apache Software Foundation Apache Camel: exposure of Data Element to Wrong Session
- Dec 3, 2026CVE-2026-135918 Apache Software Foundation Apache Camel: exposure of Data Element to Wrong Session
- Dec 3, 2026CVE-2026-135917 Apache Software Foundation Apache Camel: unintended Proxy or Intermediary
- Dec 3, 2026CVE-2026-135916 Apache Software Foundation Apache Camel: improper Neutralization of CRLF Sequences
- Dec 3, 2026CVE-2026-135915 Apache Software Foundation Apache Camel: authentication bypass (improper authentication)
- Dec 3, 2026CVE-2026-133005 Apache Software Foundation Apache Camel: deserialization of untrusted data
- Dec 3, 2026CVE-2026-132829 Apache Software Foundation Apache Camel: improper certificate validation
- Dec 3, 2026CVE-2026-132828 Apache Software Foundation Apache Camel: sensitive data sent in clear text
Questions about CVE-2026-79986
Is CVE-2026-79986 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 1.02% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Camel are affected by CVE-2026-79986?
Apache Camel from 4.0.0 before 4.18.5 and Apache Camel from 4.19.0 before 4.22.1, per the CVE record by apache. The tables above give every range the sources list.
Which version fixes CVE-2026-79986?
4.18.5, 4.22.1 and 4.23.0, per the CVE record by apache. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-79986?
High (7.4, CVSS 3.1, from apache). The severity table above shows each score with its source.
Where is the official record of CVE-2026-79986?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.