{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-135259","assignerOrgId":"5a6e4751-2f3f-4070-9419-94fb35b644e8","state":"PUBLISHED","assignerShortName":"CIRCL","dateReserved":"2026-11-23T15:45:23.613Z","datePublished":"2026-11-23T15:45:27.052Z","dateUpdated":"2026-11-23T15:45:27.052Z"},"containers":{"cna":{"affected":[{"cpes":["cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:*"],"modules":["AuthKeysController","AuthKey model"],"product":"MISP","programFiles":["app/Controller/AuthKeysController.php","app/Model/AuthKey.php"],"repo":"https://github.com/MISP/MISP","vendor":"MISP","versions":[{"lessThan":"2.5.52","status":"affected","version":"0","versionType":"semver"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:*","vulnerable":true}],"negate":false,"operator":"OR"}]}],"credits":[{"lang":"en","type":"reporter","value":"Francois-Xavier Stellamans from the NATO Cyber Security Centre with OpenAI Daybreak support (using GPT5.6-Cyber)"},{"lang":"en","type":"remediation developer","value":"iglocska"},{"lang":"en","type":"remediation developer","value":"Claude Opus 5.5"}],"descriptions":[{"lang":"en","value":"MISP contains a type confusion vulnerability in the authentication key creation endpoint. When a user submits a floating-point value as the target user identifier, the authorization check truncates the value to an integer (matching the attacker's own account), while the persistence layer rounds the same value to a different integer (the next account in the sequence). This discrepancy allows an authenticated user with key-creation permission to generate an API authentication key belonging to another user.\n\nPreconditions:\n- The attacker must be an authenticated user with the permission to create authentication keys.\n- The target user must have a consecutive numeric identifier immediately following the attacker's identifier.\n\nImpact:\n- Unauthorized creation of an API key for another user, granting the attacker access to that user's data and operations within the MISP instance.\n- The vulnerability is trivially exploitable by substituting a carefully crafted floating-point value for the integer user identifier in the request.\n\nAffected versions: MISP prior to 2.5.52."}],"impacts":[{"capecId":"CAPEC-15","descriptions":[{"lang":"en","value":"CAPEC-15 Using Excessive Floating Point Precision"}]},{"capecId":"CAPEC-110","descriptions":[{"lang":"en","value":"CAPEC-110 Parameter Tampering"}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.3,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]},{"format":"SSVC","other":{"content":{"options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"Supplier","timestamp":"2026-11-23T09:50:47Z","version":"2.0.3"},"type":"SSVC"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20 Improper Input Validation","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-843","description":"CWE-843 Access Control Bypass","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"5a6e4751-2f3f-4070-9419-94fb35b644e8","shortName":"CIRCL","dateUpdated":"2026-11-23T15:45:27.052Z"},"references":[{"name":"Security patch","tags":["patch"],"url":"https://github.com/MISP/MISP/commit/6298e281ea5c35ba134dd13c1d37f1098cf393ac"}],"solutions":[{"lang":"en","value":"The fix enforces strict type validation on the user identifier parameter in both the controller and the model layer. Only native integers or digit-only strings are accepted; any other type (including floating-point numbers) is rejected with an authorization error before the value reaches the persistence layer. This eliminates the discrepancy between the authorization check and the storage layer, preventing the type confusion from being exploited."}],"title":"MISP Auth Key Creation Type Confusion Allows Unauthorized Key for Adjacent User","x_gcve":[{"extensions":{"bcp-05-x-01":{"ai_annotations":[{"ai_level":"generated","description":"Draft vulnerability metadata was generated from a git-format patch using an Ollama-hosted language model. Human validation is required before publication.","gna_source":1,"models":[{"gna_source":1,"identifier":"qwen3.8:27b","name":"qwen3.8:27b","source":"ollama"}],"review_status":"full","scope":"record","tags":["ai-computer-assisted:llm-generated","ai-computer-assisted:classification"]}]},"bcp-05-x-02":{"x_patch2vuln":{"assumptions":["The affected version range is inferred from the explicit context (fixed in 2.5.52); the patch itself does not enumerate all prior affected versions.","PR:L assumes the attacker needs only the standard perm_auth role; the patch does not specify whether additional roles or configurations are required.","CAPEC-15 is the closest available mapping; the vulnerability is more precisely a type-confusion between integer and float handling rather than a pure precision-excess issue, but no CAPEC entry specifically covers integer/float type confusion in authorization checks.","The CVSS impact metrics (VC:L, VI:L) assume the attacker gains meaningful access to the adjacent user's data; the actual scope of data accessible depends on the target user's role and permissions, which are not specified in the patch.","The Co-Authored-By line references Claude Opus 5.5 as an AI assistant; it is not credited as a person or organization."],"capecRationale":[{"capecId":"CAPEC-15","rationale":"The vulnerability is directly caused by a floating-point value being accepted where an integer is expected. The float passes an integer-truncation check but is stored with floating-point rounding that produces a different integer. This is a textbook case of floating-point precision/type handling causing an unintended security outcome. The mapping is a close fit because the core mechanism is the discrepancy in how a float is interpreted by two different code paths."},{"capecId":"CAPEC-110","rationale":"The attacker tampers with the user_id parameter by supplying a crafted floating-point value instead of the expected integer, exploiting the type-handling inconsistency. This is a secondary mapping; the primary mechanism is the floating-point precision issue (CAPEC-15), but the attack vector is parameter manipulation."}],"commit":"6298e281ea5c35ba134dd13c1d37f1098cf393ac","confidence":"high","credits":[{"lang":"en","type":"reporter","value":"Francois-Xavier Stellamans from the NATO Cyber Security Centre with OpenAI Daybreak support (using GPT5.6-Cyber)"},{"lang":"en","type":"remediation developer","value":"iglocska"},{"lang":"en","type":"remediation developer","value":"Claude Opus 5.5"}],"cvssRationale":"AV:N - MISP is a web application accessible over the network. AC:L - exploitation requires only substituting a float for an integer in a single parameter; no race conditions or special timing. AT:N - no manipulation of the target environment is needed. PR:L - the attacker must be an authenticated user with the permission to create auth keys (perm_auth). UI:N - no victim interaction is required. VC:L - the attacker obtains an API key for another user, exposing that user's data. VI:L - an unauthorized auth key is created, representing a limited integrity violation. VA:N - no meaningful availability impact. SC/SI/SA:N - the impact is confined to the MISP instance; no cross-component impact is evidenced.","fixSummary":"The fix enforces strict type validation on the user identifier parameter in both the controller and the model layer. Only native integers or digit-only strings are accepted; any other type (including floating-point numbers) is rejected with an authorization error before the value reaches the persistence layer. This eliminates the discrepancy between the authorization check and the storage layer, preventing the type confusion from being exploited.","generatedAt":"2026-11-23T09:50:47.732313Z","generator":"patch2vuln.py","model":"qwen3.8:27b","modelComparison":{"potentialErrors":[],"rankings":[{"agreementScore":11,"assumptionCount":5,"confidence":"high","model":"qwen3.8:27b","score":8}],"selectedModel":"qwen3.8:27b","selectionMethod":"deterministic-consensus-v1","selectionNotice":"The selected result is closest to model consensus; this heuristic does not establish factual correctness and human review remains required."},"patchSha256":"0ae39490cfd62c401e125bcff4e30806701e0af26cd8fe1923dde7209606dbf2","patchSummary":"In AuthKeysController::add(), a guard clause is added before the existing authorization logic that rejects any user_id that is neither a native PHP integer nor a string consisting solely of digits (ctype_digit), throwing a MethodNotAllowedException. The value is then explicitly cast to int. In AuthKey::canCreateAuthKeyForUser(), an identical type check is added for non-site-admin users, returning false if the user_id is not an integer or digit string. A regression test class (AuthKeyAddCanonicalUserId) is added to tests/testregressions.py that verifies: (1) a float user_id that truncates to the attacker's ID but rounds to the next user's ID is rejected with HTTP 400+, (2) legitimate integer and digit-string forms still work, and (3) a plain integer for another user is still refused by the existing authorization logic.","patchTruncated":false,"patches":[{"commit":"6298e281ea5c35ba134dd13c1d37f1098cf393ac","date":"Tue, 17 Nov 2026 19:48:00 +0100","patchSha256":"0ae39490cfd62c401e125bcff4e30806701e0af26cd8fe1923dde7209606dbf2","retrievedAt":"2026-11-23T09:50:16.711654Z","source":"https://github.com/MISP/MISP/commit/6298e281ea5c35ba134dd13c1d37f1098cf393ac","sourceUrl":"https://github.com/MISP/MISP/commit/6298e281ea5c35ba134dd13c1d37f1098cf393ac","subject":"fix: [security] Auth keys are created only for an integer"}],"source":"https://github.com/MISP/MISP/commit/6298e281ea5c35ba134dd13c1d37f1098cf393ac","ssvc":{"options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"Supplier","timestamp":"2026-11-23T09:50:47Z","version":"2.0.3"},"subject":"fix: [security] Auth keys are created only for an integer","weaknessRationale":[{"cweId":"CWE-20","rationale":"The root cause is that the user_id parameter accepts a floating-point value where only an integer should be permitted. The authorization check and the persistence layer interpret the float differently, but the fundamental weakness is the failure to validate and reject non-integer input types at the boundary."},{"cweId":"CWE-843","rationale":"The practical security impact is a bypass of the authorization check: the (int) cast in the permission check matches the attacker's own ID, while the ORM saves a different ID, effectively granting access to another user's resources without proper authorization."}]}},"bcp-05-x-03":{"x_timeline":{"events":[{"description":"Corrective change authored (6298e281ea5c35ba134dd13c1d37f1098cf393ac): fix: [security] Auth keys are created only for an integer","id":"evt-fix-developed-1","references":["https://github.com/MISP/MISP/commit/6298e281ea5c35ba134dd13c1d37f1098cf393ac"],"timestamp":"2026-11-17T18:48:00Z","type":"fix-developed"},{"description":"Patch retrieved from the supplied URL; retrieval time is used as the default availability time.","id":"evt-fix-available-1","references":["https://github.com/MISP/MISP/commit/6298e281ea5c35ba134dd13c1d37f1098cf393ac"],"timestamp":"2026-11-23T09:50:16.711654Z","type":"fix-available"}]}}},"recordType":"advisory","vulnId":"GCVE-1-2026-20450"}]}}}