Exploit database

GH-d6ff4e36dc1c9f088619aabba4dae44a

aheybati/cve-2026-27980

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-27980

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files1
aheybati/cve-2026-27980Revision 162e5b0a1fff

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

lab/app/app/api/note/route.js

JavaScript · 1,577 bytes
// Disk-write health probe ("can this application still perform ordinary
// disk writes?"). Used as the availability impact indicator for
// CVE-2026-27980: when the image-optimizer cache fills the filesystem,
// ordinary write operations fail with ENOSPC.
import { promises as fs } from 'node:fs'
import { join } from 'node:path'

export const dynamic = 'force-dynamic'

const notesFile = () => join(process.cwd(), 'data', 'notes.txt')

export async function POST(request) {
  const text = (await request.text().catch(() => 'ping')).slice(0, 200)
  try {
    await fs.mkdir(join(process.cwd(), 'data'), { recursive: true })
    // Pad to 16 KiB so every probe must allocate a fresh filesystem page:
    // small appends can hide in the slack space of an already-allocated page
    // and would NOT fail when the filesystem is exhausted.
    const line = `${new Date().toISOString()} ${text}\n`
    const padded = line + '.'.repeat(16384 - line.length) + '\n'
    await fs.appendFile(notesFile(), padded)
    return Response.json({ ok: true })
  } catch (error) {
    return Response.json(
      {
        ok: false,
        code: error?.code ?? 'UNKNOWN',
        message: String(error?.message ?? error),
      },
      { status: 507 }
    )
  }
}

export async function GET() {
  try {
    const content = await fs.readFile(notesFile(), 'utf8')
    return Response.json({
      ok: true,
      lines: content.trim().split('\n').filter(Boolean).length,
    })
  } catch (error) {
    return Response.json({ ok: false, code: error?.code ?? 'UNKNOWN' }, { status: 500 })
  }
}