encyclopegia.org

JIT spraying

JIT spraying is a class of computer security exploit that circumvents the protection of address space layout randomization and data execution prevention by exploiting the behavior of just-in-time compilation.[src] It has been used to exploit the PDF format and Adobe Flash.[src] A just-in-time compiler (JIT) by definition produces code as its data.[src] Since the purpose is to produce executable data, a JIT compiler is one of the few types of programs that cannot be run in a no-executable-data environment.[src] Because of this, JIT compilers are normally exempt from data execution prevention.[src] A JIT spray attack does heap spraying with the generated code.[src] To produce exploit code from JIT, an idea from Dion Blazakis is used.[src] The input program, usually JavaScript or ActionScript, typically contains numerous constant values that can be erroneously executed as code.[src] For example, the XOR operation could be used: var a = (0x11223344^0x44332211^0x44332211^ ...); JIT then will transform bytecode to native x86 code like: 0: b8 44 33 22 11 5: 35 11 22 33 44 a: 35 11 22 33 44 The attacker then uses a suitable bug to redirect code execution into the newly generated code.[src] For example, a buffer overflow or use after free bug could allow the attack to modify a function pointer or return address.[src] This causes the CPU to execute instructions in a way that was unintended by the JIT authors.…[src]

JIT spraying is a class of computer security exploit that circumvents the protection of address space layout randomization and data execution prevention by exploiting the behavior of just-in-time compilation.[src] It has been used to exploit the PDF format and Adobe Flash.[src] A just-in-time compiler (JIT) by definition produces code as its data.[src] Since the purpose is to produce executable data, a JIT compiler is one of the few types of programs that cannot be run in a no-executable-data environment.[src] Because of this, JIT compilers are normally exempt from data execution prevention.[src] A JIT spray attack does heap spraying with the generated code.[src] To produce exploit code from JIT, an idea from Dion Blazakis is used.[src] The input program, usually JavaScript or ActionScript, typically contains numerous constant values that can be erroneously executed as code.[src] For example, the XOR operation could be used: var a = (0x11223344^0x44332211^0x44332211^ ...); JIT then will transform bytecode to native x86 code like: 0: b8 44 33 22 11 5: 35 11 22 33 44 a: 35 11 22 33 44 The attacker then uses a suitable bug to redirect code execution into the newly generated code.[src] For example, a buffer overflow or use after free bug could allow the attack to modify a function pointer or return address.[src] This causes the CPU to execute instructions in a way that was unintended by the JIT authors.[src] The attacker is usually not even limited to the expected instruction boundaries; it is possible to jump into the middle of an intended instruction to have the CPU interpret it as something else.[src] As with non-JIT ROP attacks, this may be enough operations to usefully take control of the computer.[src] Continuing the above example, jumping to the second byte of the "mov" instruction results in an "inc" instruction: 1: 44 2: 33 22 4: 11 35 11 22 33 44 a: 35 11 22 33 44 x86 and x86-64 allow jumping into the middle of an instruction, but not fixed-length architectures like ARM.[src] To protect against JIT spraying, the JIT code can be disabled or made less predictable for the attacker.[src]

26 sentences · 26 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"JIT spraying." encyclopegia.org, 2026, https://encyclopegia.org/wiki/jit-spraying. Accessed 02 December 2026.

Chicago

"JIT spraying." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/jit-spraying.

APA

encyclopegia.org. (2026). JIT spraying. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/jit-spraying

Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1355878421 · 0.5 · snapshot enwiki-001355878421

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.