Botan is a C++ cryptography library. Prior to 3.13.0, Botan's X.509 Distinguished Name decoder flattens the Attribute-Value Assertions in each Relative Distinguished Name and loses multi-value RDN grouping before DN name-constraint enforcement. An attacker controlling a name-constrained intermediate CA can issue a certificate with a multi-value RDN whose first Common Name matches the permitted constraint and whose second Common Name is attacker-chosen, causing the constraint check to accept the flattened first value. If the certificate contains no subjectAlternativeName extension, the second Common Name can then be accepted as a hostname; Botan does not fall back to Common Name hostname matching when any subjectAlternativeName is present. The exposure is limited to deployments using DN name constraints, which are uncommon outside internal PKIs, and to certificates without a subjectAlternativeName. This issue is fixed in version 3.13.0.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-1023",
"CWE-295"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48057.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "3.13.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "a22260c368373a134ff9778b9d8781edb2e1eb99"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48057.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "108394281083174165722414199106093842721",
"length": 197
},
"id": "CVE-2026-48057-02309cab",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "X509_DN::get_attributes"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "329150141790513697152520615943475209467",
"length": 346
},
"id": "CVE-2026-48057-0d421d0d",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "X509_DN::encode_into"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "247030266337379846677268889734954967870",
"length": 434
},
"id": "CVE-2026-48057-0f7f8eb5",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "X509_DN::decode_from"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"4896627723873827263674657643437128043",
"28955270355576766284741079154008793963",
"269864107338576073632144759889018605576",
"131929286608561938339006344739637331207",
"280396371189913649764218464032781315354",
"269039893992590802291461607812634252331",
"277427640815873989148997218358482963274",
"288968196594781828783394363672856465633",
"35808068160499026802598704668756933888",
"138959942527768791214679703408715458338"
],
"threshold": 0.9
},
"id": "CVE-2026-48057-12fcd11d",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/pkix_types.h"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "31758856111820687558416119311252088205",
"length": 603
},
"id": "CVE-2026-48057-26278739",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "operator=="
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"170408312089158430061819591507333899726",
"185267745831264309854478445976978034860",
"173495337010777228795291947856943296741",
"194991752447071765813050654219035533588",
"122452825108455226990946129703229586123",
"319470793105156618905111585361424400420",
"315374118576037622022984875377081578209"
],
"threshold": 0.9
},
"id": "CVE-2026-48057-26ac1b4a",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509path.cpp"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"132381793212332960597965561595699180919",
"17295008011129888590128545696236512982",
"179552441128917908529846041156994520419",
"830649859636206214897643191901203068",
"114905834463886724954657135971564851461",
"7169763287130446740798777966747488005",
"304107996587265315947463028391837990249",
"325403038943100949231282386389910704787"
],
"threshold": 0.9
},
"id": "CVE-2026-48057-2c0801d8",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/tests/unit_x509.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "23558369825882966714941606930958764359",
"length": 154
},
"id": "CVE-2026-48057-5673eaf3",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "X509_DN::has_field"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "326138429524502052629110865155764807741",
"length": 280
},
"id": "CVE-2026-48057-5eb10a24",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "X509_DN::get_attribute"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "329864003748997407951492768956031809909",
"length": 716
},
"id": "CVE-2026-48057-764e699f",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/certstor_system_macos/certstor_macos.cpp",
"function": "normalize"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "100403765237806497524248705175145603470",
"length": 174
},
"id": "CVE-2026-48057-890dac6f",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "X509_DN::get_first_attribute"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "97048507712719775052952010126534428835",
"length": 683
},
"id": "CVE-2026-48057-9df90903",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "operator<"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "183521698198418245013710303642852383790",
"length": 4999
},
"id": "CVE-2026-48057-b9b2b765",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509path.cpp",
"function": "PKIX::check_chain"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "160635963287450663887321377779125230174",
"length": 422
},
"id": "CVE-2026-48057-c360c719",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "operator<<"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "93957237703161565822371786899529167933",
"length": 201
},
"id": "CVE-2026-48057-d46b35e0",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "X509_DN::add_attribute"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"292680935904290531762553670909528703138",
"310897871783471498781110236240625069823",
"229713256101686649197598082060273108428",
"160918608152979024886744241943650253822"
],
"threshold": 0.9
},
"id": "CVE-2026-48057-d5b29b51",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/certstor_system_macos/certstor_macos.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "218629771669025285056284747030135727501",
"length": 450
},
"id": "CVE-2026-48057-e5e3c626",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/name_constraint.cpp",
"function": "GeneralName::matches_dn"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "333059128526118826344147817385412121338",
"length": 2145
},
"id": "CVE-2026-48057-e60e125a",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/tests/unit_x509.cpp",
"function": "test_custom_dn_attr"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"328733509930950500978793017345610103962",
"61627637287657187055597293755738102117",
"115130629629047077186435205679225809789",
"74635504487007761461577993344243256062",
"62185578911709506156211541197712679081",
"307137200243479546445575074135318362940",
"71460584155970868171458934423801727135",
"242627200631999060460244409270551405202",
"102813791260699895322467202355751248887",
"160764152334726593449087361955687142859",
"52440969089958834617762135722590058341"
],
"threshold": 0.9
},
"id": "CVE-2026-48057-e84fc6fd",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/name_constraint.cpp"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"307191639940595495067725846965355000319",
"292739205113914295066648189383761562737",
"338191631321298644646262471083726744365",
"285812486922580771492700987427599127273",
"102485571799417684538496703885612753513",
"289794067503697612181926406078271891989",
"220665450669031451777792898733414474409",
"66658292737792950299086391374004902917",
"197252609330284580473479673887207006058",
"53160852587918451623904631845305581919",
"168577775378586310985569820104091902442",
"337978701839170737012084369993226244138",
"59607906820215747130205114712275485671",
"274017453832346349947481088905757863848",
"187691906810427791501057607994604012581",
"267675727492087288262449283338169461640",
"151490220129803711736973672596723912539",
"111531344465778743053695161169312539918",
"239360974141051473438098049899617772730",
"290141215755148248073748884561464823755",
"201817827432454337965651053649192212396",
"221443676406635863723322876684637097342",
"295934132219734662587342942342325359732",
"122949093595573135746210026040802998425",
"51834675369272350848642727802697219871",
"161364993515668015356914029082317187629",
"96281525869754254931168548486061126810",
"102773042227712380051185624212894701760",
"146828645884585934618353320369175828061",
"111051006223523549951509049668093186561",
"290933088731386404319968798231340102867",
"127752460397435119312099092262594346478",
"278085453460003990930586462966698171733",
"320613296392783507875511181107030391178",
"97435847634645486346511276346848781958",
"23586942453846875115612377093005297498",
"115545516944987167615908949208634700997",
"207020201678348668321263644151820630651",
"164221947786803887378848188366779469939",
"138717487506883096252786457724897159677",
"50963130985956970877493987703889058753",
"229899516117615449699836414987865000472",
"237953962910000297898471484607076125714",
"213262724716943254257932910666960956485",
"30466134056154998078903366461676068696",
"208892883840684703812756889658190070687",
"203556893340498723013908801394055119543",
"237885233700779039473782810666405559541",
"330583266786084191313275748019168258046",
"263449799927935794716037505312084256060",
"156458742039057028376588973991661371991",
"199153205183938346126732308304839924898",
"307949144167123707205015832007629455244",
"172707550542106508065761527451506468973",
"326271890957486630392178349953942617085",
"329182288687266935635217063545109316319",
"192625770958960576579881772506168402425",
"261490628861251717789040708194154509720",
"100178436514472986440080883173564506278",
"161200476245339789329006948915808775669",
"56732641890599357955464402964527051270",
"116275440494949119937012037835489581997",
"156511200711147679689601216204630653540",
"20407623034154393086108810042325012256",
"121181366438004697765825655422184203391",
"96503411701267217057088262328984291629",
"130034852241259257700780293496105246013",
"194017900379552616974192774648942477588",
"95986727994255446356910380302664649335",
"187612763840569287756488212332158131769",
"47688449290483839249915772063778900288",
"180615648775266052452583958431495891594",
"300337569285921072338116097692325474499",
"270662776109639419541224377973057464050",
"423983560269486473849252833859622171",
"127151095867404386249624381709168095433",
"1144927257749081577730409154830392408",
"261911592177749411790449062580343853850",
"203960334840367800498440728565413456011",
"134653564204949673100290570226189594230",
"19356034396996861491669315270268517833",
"92257271445081732971657728387637590271",
"243258356160343739936699746522434527718",
"70560759381683333555696367920643696910",
"143995811874754220941409049784678909185",
"80155548341071387076582871153247471192",
"9351060023717781529916216911569191160",
"307499942753291597895645552292146456129",
"213844310340734584784200937566683036360",
"130034852241259257700780293496105246013",
"248739758519088718341406949774298907865",
"135770188511857765718562289337204200713",
"46054896123766751510975690739830053998",
"339293738088822119412425115591094273196",
"309493106704838002179764194290307119893",
"30650493503726772502014436261792149518",
"198819797451171609259959188722135276757",
"298772288073901024105945433258307029400",
"141821155919609137366219024140950721364",
"163964231655883051703840649901918347356",
"314231975439882101978445569867782701778",
"119961216441064547069325627130100753833",
"60706150087274991719955579516088060770",
"316554437215583354419775302213571154276",
"84835357530349589328598095386927489612",
"2576270142861149935538934295355559856",
"24464867212718350530682847858644759174",
"65412741577606076109956570944721372686",
"133876024758788010572906922886854829370",
"240970951119505733446005720475191550597",
"130082426190646222143635261346980030345",
"276551311521510339374948125600651358388",
"44976444701383680963158414986592518853",
"28476133816503490630564752107054001865",
"57810521583283203782031092464804850005",
"212819135478709420378514806981286574140",
"273800629721040589343090544234324522708",
"244863313998016183315486641509984498749",
"216844097457976129271304016633135542448",
"26506519846678836387869250881045868249",
"220328326335733496328919506964799667708",
"40323221016724660213981220268246363765",
"329653412766164841283617760920514963290",
"84242468529448045130194639513426102868",
"111485218436054048475518485322208644621",
"130523667631065823037738133595552258497",
"281784437178312001805069466153344818640",
"150418335100789347376282032218916104082"
],
"threshold": 0.9
},
"id": "CVE-2026-48057-e857162d",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"72525596409175407982666826880027282130",
"189867353311895648915957677700602589300",
"129408550059970190109414967936939595391",
"35291075823607296806568432512084343983",
"96320181937760324348731763568528902747",
"22998072738340855211425311099864844982",
"325392055470973483819557902349729890941",
"49238021979868877962813568724881157126"
],
"threshold": 0.9
},
"id": "CVE-2026-48057-eb8bb9cb",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_utils.h"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "150386959613529205295281573911487936238",
"length": 227
},
"id": "CVE-2026-48057-ee135fa8",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99",
"target": {
"file": "src/lib/x509/x509_dn.cpp",
"function": "X509_DN::contents"
}
}
]
"2026-11-14T07:06:01Z"