{
  "id": "CVE-2026-40048",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40048",
  "published_at": "2026-04-27T07:53:54.636Z",
  "title": "Apache Camel PQC: Unsafe Deserialization from FileBasedKeyLifecycleManager",
  "vendor": "Apache Software Foundation",
  "product": "Apache Camel PQC",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-07-08T16:00:29Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 72.3,
    "repo": "oscerd/CVE-2026-40048",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "The Camel-PQC FileBasedKeyLifecycleManager class deserializes the contents of `\u003ckeyId\u003e.key` files in the configured key directory using java.io.ObjectInputStream without applying any ObjectInputFilter or class-loading restrictions. The cast to `java.security.KeyPair` is evaluated only after `readObject()` has already returned, so any `readObject()` side effects in the deserialized object run before the type check. An attacker who can write to the key directory used by a Camel application — for example through a path traversal into the directory, misconfigured filesystem permissions on the volume where keys are stored, a compromised key provisioning pipeline, or a symlink attack — can place a crafted serialized Java object that, when deserialized during normal key lifecycle operations, results in arbitrary code execution in the context of the application.\n\nThis issue affects Apache Camel: from 4.19.0 before 4.20.0, from 4.18.0 before 4.18.2.\n\nUsers are recommended to upgrade to version 4.20.0, which fixes the issue by replacing java.io.ObjectInputStream-based key and metadata storage with standard PKCS#8 (private key) / X.509 SubjectPublicKeyInfo (public key) Base64 JSON encoding. For users on the 4.18.x LTS releases stream, upgrade to 4.18.2.",
  "cwe": "CWE-502",
  "cpes": [
    "cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:apache:camel:4.19.0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8
  },
  "repos": [
    {
      "repo": "oscerd/CVE-2026-40048",
      "url": "https://github.com/oscerd/CVE-2026-40048",
      "created_at": "2026-07-08T16:00:29Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-07-28T12:01:07Z"
    },
    {
      "repo": "oscerd/CVE-2026-46590",
      "url": "https://github.com/oscerd/CVE-2026-46590",
      "created_at": "2026-07-15T13:15:04Z",
      "first_seen_at": "2026-11-15T02:31:15.731Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-07-28T12:01:07Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Apache Software Foundation",
        "product": "Apache Camel PQC",
        "ranges": [
          "\u003e= 4.19.0, \u003c 4.20.0",
          "\u003e= 4.18.0, \u003c 4.18.2"
        ],
        "fixed_in": [
          "4.20.0",
          "4.18.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Apache Camel PQC to 4.20.0 or 4.18.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://camel.apache.org/security/CVE-2026-40048.html"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/exploit/trigger",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "oscerd/CVE-2026-40048"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "oscerd/CVE-2026-40048/README.md:79"
      ]
    },
    {
      "method": "POST",
      "path_template": "/exploit/inject",
      "body_markers": [
        "@payload.b64"
      ],
      "content_type": "text/plain",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "oscerd/CVE-2026-40048"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "oscerd/CVE-2026-40048/README.md:71"
      ]
    }
  ],
  "rules": []
}
