{"id":"CVE-2026-48204","published":"2026-07-06T08:06:52Z","modified":"2026-07-06T19:08:16Z","title":"Apache Camel: Camel-MongoDB-GridFS: The gridfs.* control headers used non-Camel-prefixed names that bypass the HTTP…","vendor":"Apache","product":"Apache Camel","tier":"tail","description":{"text":"Improper Input Validation, Improper Access Control vulnerability in Apache Camel in Camel Mongodb Gridfs component.\n\nThe camel-mongodb-gridfs producer selects the GridFS operation to perform from the gridfs.operation Exchange header when the endpoint's operation parameter is not set - which is the default. The control-header constants (GridFsConstants.GRIDFS_OPERATION, GRIDFS_OBJECT_ID, GRIDFS_METADATA, GRIDFS_CHUNKSIZE, GRIDFS_FILE_ID_PRODUCED) were the plain strings gridfs.operation, gridfs.objectid, gridfs.metadata, gridfs.chunksize and gridfs.fileid. Because these names do not start with the Camel / camel prefix, HttpHeaderFilterStrategy - which blocks only the Camel header namespace on the HTTP boundary - let them pass from an inbound HTTP request straight into the Exchange. In a route that bridges an HTTP consumer (for example platform-http) into a mongodb-gridfs: producer with no explicit operation, any HTTP client could therefore set the gridfs.operation header to override the route's intended operation - switching, for example, a file upload to remove (deleting a file identified by the attacker-supplied gridfs.objectid), listAll (enumerating every file in the bucket) or findOne (reading a file) - and supply a gridfs.metadata value that is parsed as a MongoDB document, enabling NoSQL operator injection. No credentials are required when the bridging consumer is unauthenticated.\nThis issue affects Apache Camel: from 4.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0.\n\nUsers are recommended to upgrade to version 4.21.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.8. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3. After upgrading, routes that drive GridFS operations or metadata via the raw header names must use CamelGridFsOperation / CamelGridFsObjectId / CamelGridFsMetadata / CamelGridFsChunkSize / CamelGridFsFileId instead of the gridfs.* names. For deployments that cannot upgrade immediately, set an explicit operation on the mongodb-gridfs: endpoint so the operation is not taken from a header, and strip the gridfs.* headers from any untrusted ingress before the producer.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00732,"percentile":0.55231,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://camel.apache.org/security/CVE-2026-48204.html","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/07/05/18","tags":[]}],"priority":{"score":22.9,"factors":[{"name":"EPSS percentile","points":11.05},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-07-17","earliestUrl":"https://github.com/oscerd/CVE-2026-48204","repos":[{"name":"oscerd/CVE-2026-48204","url":"https://github.com/oscerd/CVE-2026-48204","stars":0,"created":"2026-07-17"}]},"first":{"date":"2026-07-17","source":"PoC-in-GitHub","url":"https://github.com/oscerd/CVE-2026-48204"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Camel","versions":[">= 4.0.0, < 4.14.8",">= 4.15.0, < 4.18.3",">= 4.19.0, < 4.21.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-06T19:07:54.223976Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.camel:camel-mongodb-gridfs","vulnerableRanges":[">=4.0.0, <4.14.8",">=4.15.0, <4.18.3",">=4.19.0, <4.21.0"],"patched":["4.14.8","4.18.3","4.21.0"],"from":["GHSA-f7g3-2cg6-f5hj"],"provenance":"source"}],"summary":{"text":"The Camel-MongoDB-GridFS component in Apache Camel, specifically its producer, took the GridFS operation and related control values from unprefixed gridfs.* headers, which the HTTP header filter did not block, so they could pass in from inbound HTTP requests. An unauthenticated remote client can exploit this when a route bridges an HTTP consumer into a mongodb-gridfs producer without an explicit operation set, allowing them to override the operation (such as deleting, listing, or reading files) and inject NoSQL operators through the metadata value.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:36Z"},"euvd":{"id":"EUVD-2026-41839","exploited":false,"provenance":"source"}}