<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/from-a-silent-math-error-to-certificate-bypass-uncovering-an-integer-overflow-in-a-tls-parser-dt1x6vmjr" -->

---
title: From a Silent Math Error to Certificate Bypass:...
description: A security researcher discovered a CWE-190 integer overflow vulnerability in the ASN.1 DER parser of a popular open-source Java/Kotlin TLS library. The...
canonical: https://daily.dev/posts/from-a-silent-math-error-to-certificate-bypass-uncovering-an-integer-overflow-in-a-tls-parser-dt1x6vmjr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: From a Silent Math Error to Certificate Bypass: Uncovering an Integer Overflow in a TLS Parser | daily.dev
og:description: A security researcher discovered a CWE-190 integer overflow vulnerability in the ASN.1 DER parser of a popular open-source Java/Kotlin TLS library. The...
og:url: https://daily.dev/posts/from-a-silent-math-error-to-certificate-bypass-uncovering-an-integer-overflow-in-a-tls-parser-dt1x6vmjr
og:image: https://api.daily.dev/og/posts/DT1x6vmjr.png
og:image:alt: From a Silent Math Error to Certificate Bypass: Uncovering an Integer Overflow in a TLS Parser
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# From a Silent Math Error to Certificate Bypass: Uncovering an Integer Overflow in a TLS Parser

**[InfoSec Write-ups](https://daily.dev/sources/infosecwriteups)** · 5 min read · 0 upvotes · 0 comments

## Summary

A security researcher discovered a CWE-190 integer overflow vulnerability in the ASN.1 DER parser of a popular open-source Java/Kotlin TLS library. The parser's VLQ decoding function used a 64-bit Long with no overflow protection, allowing an attacker to feed 11 crafted bytes causing 70 bits of left shifts, silently truncating a massive number to a small value. This enables OID spoofing: a rogue certificate with a crafted oversized OID gets truncated to match a trusted standard OID, bypassing certificate validation and enabling MitM attacks. The fix involves a pre-shift boundary check. The writeup also shares practical bug hunting tips: follow TODO comments, build local test harnesses, and always translate math errors into concrete security impact.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://infosecwriteups.com/from-a-silent-math-error-to-certificate-bypass-uncovering-an-integer-overflow-in-a-tls-parser-b73b86696f74>

## Similar posts on daily.dev

- [Security advisory: CVE- 2026- 100140: Integer overflow vulnerability in XML parsing functionality of Qt5Compat impacts Qt](https://daily.dev/posts/security-advisory-cve--2026--100140-integer-overflow-vulnerability-in-xml-parsing-functionality-of-28dqy7tm4) · Qt · 0 upvotes · 0 comments
- [We found cryptography bugs in the elliptic library using Wycheproof](https://daily.dev/posts/we-found-cryptography-bugs-in-the-elliptic-library-using-wycheproof-togrvgscx) · Hacker News · 1 upvotes · 0 comments
- [Linux Out-Of-Bounds Access Fixed For Unprivileged Users With Specially Crafted Certs](https://daily.dev/posts/linux-out-of-bounds-access-fixed-for-unprivileged-users-with-specially-crafted-certs-uecwavcoe) · Phoronix · 0 upvotes · 0 comments
- [libssh2 CVE-2026-55200 Shows Why Outbound SSH Is an Attack Surface](https://daily.dev/posts/libssh2-cve-2026-55200-shows-why-outbound-ssh-is-an-attack-surface-pza5y7nfo) · Latest Hacking News · 1 upvotes · 0 comments
- [Critical flaw in wolfSSL library enables forged certificate use](https://daily.dev/posts/critical-flaw-in-wolfssl-library-enables-forged-certificate-use-3x0xohq0b) · BleepingComputer · 0 upvotes · 0 comments

---

Tags: [#kotlin](https://daily.dev/tags/kotlin)

[View this post on daily.dev](https://daily.dev/posts/from-a-silent-math-error-to-certificate-bypass-uncovering-an-integer-overflow-in-a-tls-parser-dt1x6vmjr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"From a Silent Math Error to Certificate Bypass: Uncovering an Integer Overflow in a TLS Parser","url":"https://daily.dev/posts/from-a-silent-math-error-to-certificate-bypass-uncovering-an-integer-overflow-in-a-tls-parser-dt1x6vmjr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/from-a-silent-math-error-to-certificate-bypass-uncovering-an-integer-overflow-in-a-tls-parser-dt1x6vmjr"},"datePublished":"2026-03-28T12:26:14.699Z","dateModified":"2026-03-28T12:26:43.934Z","description":"A security researcher discovered a CWE-190 integer overflow vulnerability in the ASN.1 DER parser of a popular open-source Java/Kotlin TLS library. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0c18ea106cc99f14b8cd7385c6d54271?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0c18ea106cc99f14b8cd7385c6d54271?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"InfoSec Write-ups","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"InfoSec Write-ups","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f0dc21b5bbfd46fda36f7b4b53dd1705","url":"https://daily.dev/sources/infosecwriteups"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/from-a-silent-math-error-to-certificate-bypass-uncovering-an-integer-overflow-in-a-tls-parser-dt1x6vmjr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"kotlin","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"InfoSec Write-ups","item":"https://daily.dev/sources/infosecwriteups"},{"@type":"ListItem","position":3,"name":"From a Silent Math Error to Certificate Bypass: Uncovering an Integer Overflow in a TLS Parser"}]}
```

